package com.wanqing.assistant;

import com.wanqing.assistant.pojo.AdminChat;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

@AiService(wiringMode = EXPLICIT,
        chatMemoryProvider = "adminChatMemoryProvider",
        streamingChatModel = "qwenStreamingChatModel",
        tools = "adminTools")
public interface AdminAssistant {
    @SystemMessage(fromResource = "admin-prompt-template.md")
    Flux<String> chat(@MemoryId AdminChat chat, @UserMessage String userMessage);
}
